import Vue from 'vue'
import Router from 'vue-router'
import BusineCenter from './BusineCenter'
import UserCenter from './UserCenter'
import OrderCenter from './OrderCenter'
import productCenter from './productCenter'
import payCenterDirPub from './payCenterDirPub'

// 异步路由, 默认都Layout下子路由的目录
const publicRouter = [
  ...BusineCenter,
  ...UserCenter,
  ...OrderCenter,
  ...productCenter,
  ...payCenterDirPub,
  // 首页
  {
    name: 'PublicPublicDashboard',
    path: 'PublicPublicdashboard',
    component: () => import('@/publicViews/dashboard')
  },

  // 会员菜单
  // { name: 'PublicVipList', path: 'PublicPublicvip/list', props: true, component: () => import('@/publicViews/vip/list') }, // 会员管理
  {
    name: 'PublicVipList',
    path: 'PublicPublicvip/list',
    props: true,
    component: () => import('@/publicViews/vip/list')
  }, // 会员管理(优化)
  // {
  //   name: 'PublicVipLabel',
  //   path: 'PublicPublicvip/label',
  //   props: true,
  //   component: () => import('@/publicviews/vip/label')
  // }, 
  // 会员标签
  {
    name: 'PublicVipGroup',
    path: 'PublicPublicvip/group',
    props: true,
    component: () => import('@/publicViews/vip/group')
  }, // 会员分群
  {
    name: 'PublicVipDetail',
    path: 'PublicPublicvip/detail',
    props: true,
    component: () => import('@/publicViews/vip/detail')
  }, // false:会员详情
  {
    name: 'PublicVipImport',
    path: 'PublicPublicvip/import',
    props: true,
    component: () => import('@/publicViews/vip/import')
  }, // false:会员导入
  {
    name: 'PublicVipQrCodeConfig',
    path: 'PublicPublicvip/qr-code-config',
    props: true,
    component: () => import('@/publicViews/vip/qr-code-config')
  }, // 会员码规则
  // { name: 'PublicVipModifyAccount', path: 'PublicPublicvip/modify-account', props: true, component: () => import('@/publicViews/vip/modify-account') }, // false:批量调整
  {
    name: 'PublicVipCardList',
    path: 'PublicPublicvip/card-list',
    props: true,
    component: () => import('@/publicViews/vip/card-list')
  }, // 会员卡类型
  {
    name: 'PublicVipCardBag',
    path: 'PublicPublicvip/card-bag',
    props: true,
    component: () => import('@/publicViews/vip/card-bag')
  }, // 同步微信卡包
  {
    name: 'PublicVipOperate',
    path: 'PublicPublicvip/operate',
    props: true,
    component: () => import('@/publicViews/vip/operate')
  }, // 会员运营
  {
    name: 'PublicVipPromoteQr',
    path: 'PublicPublicvip/promote-qr',
    props: true,
    component: () => import('@/publicViews/vip/promote-qr')
  }, // false:门店二维码推广
  {
    name: 'PublicVipPromoters',
    path: 'PublicPublicvip/promoters',
    props: true,
    component: () => import('@/publicViews/vip/promoters')
  }, // false:推广拉新
  {
    name: 'PublicVipCardGive',
    path: 'PublicPublicvip/card-give',
    props: true,
    component: () => import('@/publicViews/vip/card-give')
  }, // false:赠送会员
  {
    name: 'PublicVipAccountConfig',
    path: 'PublicPublicvip/account-config',
    props: true,
    component: () => import('@/publicViews/vip/account-config')
  }, // 会员储值
  {
    name: 'PublicVipPoints',
    path: 'PublicPublicvip/points',
    props: true,
    component: () => import('@/publicViews/points')
  }, // 会员积分
  {
    name: 'PublicVipPointsMall',
    path: 'PublicPublicvip/points-mall',
    props: true,
    component: () => import('@/publicViews/points/points-mall')
  }, // false:积分商城
  {
    name: 'PublicVipPointsProductAdd',
    path: 'PublicPublicvip/points-product-add',
    props: true,
    component: () => import('@/publicViews/points/points-product-add')
  }, // false:新增积分商城兑换
  {
    name: 'PublicVipPointsProductEdit',
    path: 'PublicPublicvip/points-product-edit/:id',
    props: true,
    component: () => import('@/publicViews/points/points-product-edit')
  }, // false:编辑积分商城兑换
  {
    name: 'PublicVipBenefitCenter',
    path: 'PublicPublicvip/benefit-center',
    props: true,
    component: () => import('@/publicViews/vip/benefit-center')
  }, // 会员权益中心
  {
    name: 'PublicVipBenefitMemberBirthday',
    path: 'PublicPublicvip/benefit-member-birthday',
    props: true,
    component: () => import('@/publicViews/vip/benefit-member-birthday')
  }, // 会员生日权益
  {
    name: 'PublicVipBenefitMemberDay',
    path: 'Publicvip/benefit-member-day',
    props: true,
    component: () => import('@/publicViews/vip/benefit-member-day')
  }, // 会员日权益

  // 营销中心
  {
    name: 'PublicMarketingActivityCreate',
    path: 'Publicmarketing/activity-create',
    props: true,
    component: () => import('@/publicViews/marketing/activity-create')
  }, // 营销互动中心入口
  {
    name: 'PublicMarketingActivityManage',
    path: 'Publicmarketing/activity-manage',
    props: true,
    component: () => import('@/publicViews/marketing/activity-manage')
  }, // 活动列表
  {
    name: 'PublicMarketingActivityForm',
    path: 'Publicmarketing/activity-form',
    props: true,
    component: () => import('@/publicViews/marketing/activity-form')
  }, // 活动
  {
    name: 'PublicMarketingActivityDialog',
    path: 'Publicmarketing/activity-dialog',
    props: true,
    component: () => import('@/publicViews/marketing/activity-dialog')
  }, // 首页弹窗

  // 商家中心
  {
    name: 'PublicBusinessInfo',
    path: 'Publicbusiness/info',
    props: true,
    component: () => import('@/publicViews/business/info')
  }, // 商户概况
  {
    name: 'PublicBusinessInfoEdit',
    path: 'Publicbusiness/info-edit',
    props: true,
    component: () => import('@/publicViews/business/info-edit')
  }, // 商户资料管理
  {
    name: 'PublicBusinessStoreEdit',
    path: 'Publicbusiness/store-edit/:id',
    props: true,
    component: () => import('@/publicViews/business/store-edit')
  }, // 修改门店配置
  {
    name: 'PublicBusinessStoreAdd',
    path: 'Publicbusiness/store-add',
    props: true,
    component: () => import('@/publicViews/business/store-add')
  }, // 新增门店
  {
    name: 'PublicBusinessProductCenter',
    path: 'Publicbusiness/product-center',
    props: true,
    component: () => import('@/publicViews/business/product-center')
  }, // 产品中心
  {
    name: 'PublicBusinessGenerateQrcode',
    path: 'Publicbusiness/generate-qrcode',
    props: true,
    component: () => import('@/publicViews/business/generate-qrcode')
  }, // 制作二维码
  {
    name: 'PublicBusinessMerchantsAffiche',
    path: 'Publicbusiness/merchants-affiche',
    props: true,
    component: () => import('@/publicViews/business/merchants-affiche')
  }, // 商户公告
  {
    name: 'PublicBusinessAddAffiche',
    path: 'Publicbusiness/merchants-affiche/AddAffiche',
    props: true,
    component: () => import('@/publicViews/business/merchants-affiche/AddAffiche')
  }, // 编辑/新增公告
  {
    name: 'PublicBusinessMerchantsAffiche',
    path: 'Publicbusiness/merchants-affiche',
    props: true,
    component: () => import('@/publicViews/business/merchants-affiche')
  }, // 商户公告
  // { name: 'PublicBusinessFlowHis', path: 'Publicbusiness/flow-his', props: true, component: () => import('@/publicViews/business/flow-his') }, // 商户流量余额记录
  {
    name: 'PublicMarketingActivityDialogEdit',
    path: 'Publicmarketing/activity-dialog-edit',
    props: true,
    component: () => import('@/publicViews/marketing/activity-dialog-edit')
  },
  {
    name: 'PublicMarketingActivityDialogAdd',
    path: 'Publicmarketing/activity-dialog-add',
    props: true,
    component: () => import('@/publicViews/marketing/activity-dialog-edit')
  },
  {
    name: 'PublicMarketingActivityDialogCheck',
    path: 'Publicmarketing/activity-dialog-check',
    props: true,
    component: () => import('@/publicViews/marketing/activity-dialog-edit')
  }, //添加弹窗 编辑弹窗 查看弹窗
  // {
  //   name: "MarketingActivityDialogCheck",
  //   path: "marketing/activity-dialog-check",
  //   props: true,
  //   component: () => import("@/publicViews/marketing/activity-dialog-check"),
  // }, // 查看弹窗
  {
    name: 'PublicMarketingGoods',
    path: 'Publicmarketing/goods',
    props: true,
    component: () => import('@/publicViews/marketing/goods')
  }, // 活动扫码领券
  {
    name: 'PublicMarketingActivitySuperMember',
    path: 'Publicmarketing/activity-superMember',
    props: true,
    component: () => import('@/publicViews/marketing/activity-superMember')
  }, // 超级会员
  {
    name: 'PublicMarketingActivitySuperInviter',
    path: 'Publicmarketing/activity-superMember/superInviter',
    props: true,
    component: () =>
      import('@/publicViews/marketing/activity-superMember/superInviter')
  }, // 邀请者
  {
    name: 'PublicMarketingActivitySuperInviterMerch',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterMerch',
    props: true,
    component: () =>
      import('@/publicViews/marketing/activity-superMember/superInviter/inviterMerch')
  }, // 邀请商户
  {
    name: 'PublicMarketingActivitySuperInviterEditMerch',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterEditMerch',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superInviter/inviterEditMerch'
      )
  }, // 编辑商户
  {
    name: 'PublicMarketingActivitySuperInviterMsg',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterMsg',
    props: true,
    component: () =>
      import('@/publicViews/marketing/activity-superMember/superInviter/inviterMsg')
  }, // 邀请记录
  {
    name: 'PublicMarketingActivitySuperInviterChangeMsg',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterChangeMsg',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superInviter/inviterChangeMsg'
      )
  }, // 修改记录
  {
    name: 'PublicMarketingActivitySuperInviterOrderMsg',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterOrderMsg',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superInviter/inviterOrderMsg'
      )
  }, // 订单记录
  {
    name: 'PublicMarketingActivitySuperInviterButie',
    path: 'Publicmarketing/activity-superMember/superInviter/inviterButie',
    props: true,
    component: () =>
      import('@/publicViews/marketing/activity-superMember/superInviter/inviterButie')
  }, // 补贴详情
  {
    name: 'PublicMarketingActivitySuperParticipate',
    path: 'Publicmarketing/activity-superMember/superParticipate',
    props: true,
    component: () =>
      import('@/publicViews/marketing/activity-superMember/superParticipate')
  }, // 参与者
  {
    name: 'PublicMarketingActivitySuperParticipateMsg',
    path: 'Publicmarketing/activity-superMember/superParticipate/participateMsg',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superParticipate/participateMsg'
      )
  }, // 参与记录
  {
    name: 'PublicMarketingActivitySuperParticipateOrderMsg',
    path: 'Publicmarketing/activity-superMember/superParticipate/participateOrderMsg',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superParticipate/participateOrderMsg'
      )
  }, // 订单记录
  {
    name: 'PublicMarketingActivitySuperParticipateMarket',
    path: 'Publicmarketing/activity-superMember/superParticipate/participateMarket',
    props: true,
    component: () =>
      import(
        '@/publicViews/marketing/activity-superMember/superParticipate/participateMarket'
      )
  }, // 活动

  // 商家中心
  {
    name: 'PublicBusinessInfo',
    path: 'Publicbusiness/info',
    props: true,
    component: () => import('@/publicViews/business/info')
  }, // 商户概况
  {
    name: 'PublicBusinessInfoEdit',
    path: 'Publicbusiness/info-edit',
    props: true,
    component: () => import('@/publicViews/business/info-edit')
  }, // 商户资料管理
  {
    name: 'PublicBusinessStoreEdit',
    path: 'Publicbusiness/store-edit/:id',
    props: true,
    component: () => import('@/publicViews/business/store-edit')
  }, // 修改门店配置
  {
    name: 'PublicBusinessStoreAdd',
    path: 'Publicbusiness/store-add',
    props: true,
    component: () => import('@/publicViews/business/store-add')
  }, // 新增门店
  {
    name: 'PublicBusinessProductCenter',
    path: 'Publicbusiness/product-center',
    props: true,
    component: () => import('@/publicViews/business/product-center')
  }, // 产品中心
  {
    name: 'PublicBusinessGenerateQrcode',
    path: 'Publicbusiness/generate-qrcode',
    props: true,
    component: () => import('@/publicViews/business/generate-qrcode')
  }, // 制作二维码
  {
    name: 'PublicBusinessHuiOrderReport',
    path: 'Publicbusiness/hui-orderReport',
    props: true,
    component: () => import('@/publicViews/business/hui-orderReport')
  }, // 惠点单报表
	{
		name: 'PublicBusinessMerchantsAffiche',
		path: 'Publicbusiness/merchants-affiche',
		props: true,
		component: () => import('@/publicViews/business/merchants-affiche')
	}, // 商户公告
	{
		name: 'PublicCancelVerificationReport',
		path: 'Publicbusiness/cancel-verificationReport',
		props: true,
		component: () => import('@/publicViews/business/cancel-verificationReport')
	}, // 核销报表
	{
		name: 'PublicBusinessAddAffiche',
		path: 'Publicbusiness/merchants-affiche/AddAffiche',
		props: true,
		component: () => import('@/publicViews/business/merchants-affiche/AddAffiche')
	}, // 编辑/新增公告
	{
		name: 'PublicBusinessMerchantsAffiche',
		path: 'Publicbusiness/merchants-affiche',
		props: true,
		component: () => import('@/publicViews/business/merchants-affiche')
	}, // 商户公告
  // { name: 'PublicBusinessFlowHis', path: 'Publicbusiness/flow-his', props: true, component: () => import('@/publicViews/business/flow-his') }, // 商户流量余额记录

  // 报表
  {
    name: 'PublicStatementBalanceChange',
    path: 'Publicstatement/balance-change',
    props: true,
    component: () => import('@/publicViews/statement/balance-change')
  }, // 余额变动报表
  {
    name: 'PublicStatementPromotersBonus',
    path: 'Publicstatement/promoters-bonus',
    props: true,
    component: () => import('@/publicViews/statement/promoters-bonus')
  }, // 推广员提成报表
  {
    name: 'PublicStatementPointsChange',
    path: 'Publicstatement/points-change',
    props: true,
    component: () => import('@/publicViews/statement/points-change')
  }, // 积分变动明细
  {
    name: 'PublicStatementPointsMallRecord',
    path: 'Publicstatement/points-mall-record',
    props: true,
    component: () => import('@/publicViews/statement/points-mall-record')
  }, // 积分变动明

  // 商家中心-公众号/小程序
  {
    name: 'PublicPublicAuth',
    path: 'Publicpublic/auth',
    props: true,
    component: () => import('@/publicViews/public/auth')
  }, // 公众号授权
  {
    name: 'PublicPublicMaterial',
    path: 'Publicpublic/material-list',
    props: true,
    component: () => import('@/publicViews/public/material-list')
  }, //  图文素材
  {
    name: 'PublicPublicMaterialEdit',
    path: 'Publicpublic/material-edit',
    props: true,
    component: () => import('@/publicViews/public/material-edit')
  }, //  编辑图文素材
  {
    name: 'PublicPublicMaterialAdd',
    path: 'Publicpublic/material-add',
    props: true,
    component: () => import('@/publicViews/public/material-add')
  }, //  新增图文素材
  {
    name: 'PublicPublicMenu',
    path: 'Publicpublic/menu',
    props: true,
    component: () => import('@/publicViews/public/menu')
  }, //  公众号菜单
  {
    name: 'PublicPublicTextReply',
    path: 'Publicpublic/text-reply',
    props: true,
    component: () => import('@/publicViews/public/text-reply')
  }, // 文本消息
  {
    name: 'PublicMiniProgramManage',
    path: 'Publicwxapp/manage',
    props: true,
    component: () => import('@/publicViews/miniProgram/index')
  },

  // 数据下载
  {
    name: 'PublicDownload',
    path: 'Publicdownload',
    props: true,
    component: () => import('@/publicViews/download')
  }, // 数据下载

  // 餐饮模块
  {
    name: 'PublicWcyProductManage',
    path: 'PublicwcyModule/productManage',
    props: true,
    component: () => import('@/publicViews/wcyModule/views/productManage')
  },
  {
    name: 'PublicWcyShopManage',
    path: 'PublicwcyModule/shopManage',
    props: true,
    component: () => import('@/publicViews/wcyModule/views/shopManage')
  },
  {
    name: 'PublicWcyTableManage',
    path: 'PublicwcyModule/tableManage',
    props: true,
    component: () => import('@/publicViews/wcyModule/views/tableManage')
  },
  {
    name: 'PublicWcyOrderRecord',
    path: 'PublicwcyModule/orderRecord',
    props: true,
    component: () => import('@/publicViews/wcyModule/views/orderRecord')
  },
  {
    name: 'PublicWcyPreviewCode',
    path: 'PublicwcyModule/previewCode',
    props: true,
    component: () => import('@/publicViews/wcyModule/views/previewCode')
  },

  // 预订模块
  {
    name: 'PublicBookingShopManage',
    path: 'PublicbookingModule/shopManage',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/shopManage')
  },
  {
    name: 'PublicBookingProductManage',
    path: 'PublicbookingModule/productManage',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/productManage')
  },
  {
    name: 'PublicBookingProductState',
    path: 'PublicbookingModule/productState',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/productState')
  },
  {
    name: 'PublicBookingOrderRecord',
    path: 'PublicbookingModule/orderRecord',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/orderRecord')
  },
  {
    name: 'PublicBookingPreviewCode',
    path: 'PublicbookingModule/previewCode',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/previewCode')
  },
  {
    name: 'PublicBookingTagManage',
    path: 'PublicbookingModule/tagManage',
    props: true,
    component: () => import('@/publicViews/bookingModule/views/tagManage')
  },

  // 寄存模块
  {
    name: 'PublicDepositShopManage',
    path: 'PublicdepositModule/shopManage',
    props: true,
    component: () => import('@/publicViews/depositModule/views/shopManage')
  },
  {
    name: 'PublicDepositProductManage',
    path: 'PublicdepositModule/productManage',
    props: true,
    component: () => import('@/publicViews/depositModule/views/productManage')
  },
  {
    name: 'PublicDepositWarehouseManage',
    path: 'PublicdepositModule/warehouseManage',
    props: true,
    component: () => import('@/publicViews/depositModule/views/warehouseManage')
  },
  {
    name: 'PublicDepositOrderRecord',
    path: 'PublicdepositModule/orderRecord',
    props: true,
    component: () => import('@/publicViews/depositModule/views/orderRecord')
  },
  {
    name: 'PublicDepositOrderDetail',
    path: 'PublicdepositModule/orderDetail',
    props: true,
    component: () => import('@/publicViews/depositModule/views/orderDetail')
  },

  //预约模块
  // Reservation
  {
    name: 'PublicWxaReservationShopManage',
    path: 'PublicwxaReservationModule/shopManage',
    props: true,
    component: () => import('@/publicViews/wxaReservationModule/views/shopManage')
  },
  {
    name: 'PublicWxaReservationResourceManage',
    path: 'PublicwxaReservationModule/resourceManage',
    props: true,
    component: () => import('@/publicViews/wxaReservationModule/views/resourceManage')
  },

  {
    name: 'PublicWxaReservationProjectPlanManage',
    path: 'PublicwxaReservationModule/projectPlanManage',
    props: true,
    component: () =>
      import('@/publicViews/wxaReservationModule/views/projectPlanManage')
  },
  {
    name: 'PublicWxaReservationOrderManage',
    path: 'PublicwxaReservationModule/orderManage',
    props: true,
    component: () => import('@/publicViews/wxaReservationModule/views/orderManage')
  },

  // 微信小程序搭建
  {
    name: 'PublicWxaBuild',
    path: 'PublicwxaBuildModule/build',
    props: true,
    component: () => import('@/publicViews/wxaBuildModule/views')
  },
  // 商城模块
  {
    name: 'PublicWxaMallShopManage',
    path: 'PublicwxaMallModule/shopManage',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/shopManage')
  },
  {
    name: 'PublicWxaMallProductManage',
    path: 'PublicwxaMallModule/productManage',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/productManage')
  },
  {
    name: 'PublicWxaMallProductSkuManage',
    path: 'PublicwxaMallModule/productSkuManage',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/productSkuManage')
  },
  {
    name: 'PublicWxaMallOrderManage',
    path: 'PublicwxaMallModule/orderManage',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/orderManage')
  },
  {
    name: 'PublicWxaMallDeliveryManage',
    path: 'PublicwxaMallModule/deliveryManage',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/deliveryManage')
  },
  {
    name: 'PublicWxaMallLocalMall',
    path: 'PublicwxaMallModule/localMall',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/localMall')
  },
  {
    name: 'PublicWxaMallSecKillActivity',
    path: 'PublicwxaMallModule/secKillActivity',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/secKillActivity')
  },
  {
    name: 'PublicWxaMallGroupActivity',
    path: 'PublicwxaMallModule/groupActivity',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/groupActivity')
  },
  {
    name: 'PublicWxaMallThreadList',
    path: 'PublicwxaMallModule/threadList',
    props: true,
    component: () => import('@/publicViews/wxaMallModule/views/threadList')
  },

  // 微信小程序搭建
  {
    name: 'PublicWxaBuild',
    path: 'PublicwxaBuildModule/build',
    props: true,
    component: () => import('@/publicViews/wxaBuildModule/views')
  },

  // 工作
  {
    name: 'PublicWorkHandleOrder',
    path: 'Publicwork/handleOrder',
    props: true,
    component: () => import('@/publicViews/work/handleOrder')
  }, // 处理订单
  {
    name: 'PublicWorkVerifyOrder',
    path: 'Publicwork/verifyOrder',
    props: true,
    component: () => import('@/publicViews/work/verifyOrder')
  }, // 核销订单
  {
    name: 'PublicMyMessage',
    path: 'Publicwork/myMessage',
    props: true,
    component: () => import('@/publicViews/work/myMessage')
  }, // 我的消息
  // 插件中心
  {
    name: 'PublicPlugCenterList',
    path: 'Publicplug/PlugCenterList',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList')
  },
  {
    name: 'PublicPlugCenterAddMerc',
    path: 'Publicplug/PlugCenterAddMerc',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterAddMerc')
  },
  {
    name: 'PublicPlugCenterSupOpenPlug',
    path: 'Publicplug/PlugCenterSupOpenPlug',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterSupOpenPlug')
  },
  {
    name: 'PublicPlugCenterSupRenew',
    path: 'Publicplug/PlugCenterSupRenew',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterSupRenew')
  },
  // 卡券中心
  {
    name: 'PublicCardsAndOfferCreateCouponOrCard',
    path: 'PubliccardsAndOffer/createCouponOrCard',
    props: true,
    component: () => import('@/publicViews/cardsAndOffer/views/createCouponOrCard')
  },
  {
    name: 'PublicCardsAndOfferPreCouponOrCard',
    path: 'PubliccardsAndOffer/preCouponOrCard',
    props: true,
    component: () => import('@/publicViews/cardsAndOffer/views/preCouponOrCard')
  },
  {
    name: 'PublicCardsAndOfferManageCoupon',
    path: 'PubliccardsAndOffer/manageCoupon',
    props: true,
    keepAlive: true,
    component: () => import('@/publicViews/cardsAndOffer/views/manageCoupon')
  },
  {
    name: 'PublicCardsAndOfferEditCoupon',
    path: 'PubliccardsAndOffer/editCoupon',
    props: true,
    component: () => import('@/publicViews/cardsAndOffer/views/editCoupon')
  },
  {
    name: 'PublicCardsAndOfferManageCard',
    path: 'PubliccardsAndOffer/manageCard',
    props: true,
    keepAlive: true,
    component: () => import('@/publicViews/cardsAndOffer/views/manageCard')
  },
  {
    name: 'PublicCardsAndOfferEditCard',
    path: 'PubliccardsAndOffer/editCard',
    props: true,
    component: () => import('@/publicViews/cardsAndOffer/views/editCard')
  },
  {
    name: 'PublicCardsAndOfferReceiveCenter',
    path: 'PubliccardsAndOffer/receiveCenter',
    props: true,
    keepAlive: true,
    component: () => import('@/publicViews/cardsAndOffer/views/receiveCenter')
  },
  {
    name: 'PublicCardsAndOfferCouponBase',
    path: 'PubliccardsAndOffer/couponBase',
    props: true,
    component: () => import('@/publicViews/cardsAndOffer/views/couponBase')
  },

  // 工作
  {
    name: 'PublicWorkHandleOrder',
    path: 'Publicwork/handleOrder',
    props: true,
    component: () => import('@/publicViews/work/handleOrder')
  }, // 处理订单
  {
    name: 'PublicWorkVerifyOrder',
    path: 'Publicwork/verifyOrder',
    props: true,
    component: () => import('@/publicViews/work/verifyOrder')
  }, // 核销订单
  {
    name: 'PublicMyMessage',
    path: 'Publicwork/myMessage',
    props: true,
    component: () => import('@/publicViews/work/myMessage')
  }, // 我的消息
  // 插件中心
  {
    name: 'PublicPlugCenterList',
    path: 'Publicplug/PlugCenterList',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList')
  },
  {
    name: 'PublicPlugCenterAddMerc',
    path: 'Publicplug/PlugCenterAddMerc',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterAddMerc')
  },
  {
    name: 'PublicPlugCenterSupOpenPlug',
    path: 'Publicplug/PlugCenterSupOpenPlug',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterSupOpenPlug')
  },
  {
    name: 'PublicPlugCenterSupRenew',
    path: 'Publicplug/PlugCenterSupRenew',
    props: true,
    component: () => import('@/publicViews/plug/PlugCenterList/PlugCenterSupRenew')
  },

  // 交易中心
  {
    name: 'PublicPayView',
    path: 'PublicpayCenterDir/PayView',
    props: true,
    component: () => import('@/publicViews/payCenterDir/payCenter/PayView')
  }, // 交易概览
  {
    name: 'PublicIncomeHis',
    path: 'PublicpayCenterDir/IncomeHis',
    props: true,
    component: () => import('@/publicViews/payCenterDir/payCenter/IncomeHis')
  }, // 收入记录
  {
    name: 'PublicExpendHis',
    path: 'PublicpayCenterDir/ExpendHis',
    props: true,
    component: () => import('@/publicViews/payCenterDir/payCenter/ExpendHis')
  }, // 支出记录
  {
    name: 'PublicRefundHis',
    path: 'PublicPublicpayCenterDir/RefundHis',
    props: true,
    component: () => import('@/publicViews/payCenterDir/RefundHis')
  }, // 退款记录

	//储值
	{
	  name: 'PublicstoredConfig',
	  path: 'PublicPublicstored/stored',
	  props: true,
	  component: () => import('@/publicViews/stored/storedConfig')
	},
	//权限管理
	{
	  name: 'Publicrole',
	  path: 'PublicPublicmanagement/role',
	  props: true,
	  component: () => import('@/publicViews/management/role')
	},
	{
	  name: 'Publicemployees',
	  path: 'PublicPublicmanagement/employees',
	  props: true,
	  component: () => import('@/publicViews/management/employees')
	},
]


export default publicRouter

// export default new Router({
//   // mode: 'history',
//   scrollBehavior: () => ({ y: 0 }),
//   base: 'merchant',
//   routes: constantRouterMap
// })
